package com.zheng.HomeWeark3;

public class test {
    public static void main(String[] args) {
        Triangle(3,4,1);
    }
    public static void Triangle(int a,int b,int c){
        if (a+b>c&&b+c>a&&a+c>b){
            System.out.println(a+" "+b+" "+c);
        }else {
            throw  new TriangleException("不能构成三角形");
        }
    }

}
class TriangleException extends RuntimeException{
    public TriangleException() {
    }

    public TriangleException(String message) {
        super(message);
    }
}